﻿@model VideoCache.Server.MVCWeb.Areas.Admin.Models.UserModel

@{
    ViewBag.Title = "修改用户资料";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

@section script
{
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}

<h2 class="pageTitle">@ViewBag.Title</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.Id)
<table class="table-form">
    <tr>
        <td class="label">@Html.LabelFor(model => model.UserName)</td>
        <td>
            @Html.DisplayFor(model => model.UserName)
            @Html.HiddenFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.Password)</td>
        <td>
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.Email)</td>
        <td>
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.MobilePhone)</td>
        <td>
            @Html.EditorFor(model => model.MobilePhone)
            @Html.ValidationMessageFor(model => model.MobilePhone)
        </td>
    </tr>
    <tr>
        <td class="label"></td>
        <td>
            <input type="submit" value="保存" />
            @Html.ActionLink("返回列表", "Index")
        </td>
    </tr>
</table>
}